﻿using Face8280WebSocketServer.Utility.VerifyAttribute;
using System.ComponentModel.DataAnnotations;

namespace FaceFace8280WebSocketServer.Controllers.New.FaceDevice
{
    public class DeviceRemoteNewAddParameter
    {
        /// <summary>
        /// 包含需要新增的设备ID
        /// </summary>
        [Required]
        public List<string> DeviceIDs { get; set; }

        [VerifyTextRange(sRange: new string[] { "SoftOpenRelay", "SoftCloseRelay", 
            "SoftKeepOpenRelay", "SoftLock", "SoftUnlock", "SoftCloseAlarm", 
            "SoftFireAlarm", "SetTime", "SoftRestart", "SoftInitialize", 
            "ReconnectServer", "GetStatus","EmptyPeople" },
                      errCode: 1, sErrorDesc: "远程操作类型不正确")]
        public string Remote { get; set; }
    }
}
